package com.nicolasprof.profgallery.navigation.scrollbar {
	import flash.events.Event;

	/**
	 * @author Nicolas Prof
	 */
	public class ScrollBarEvent extends Event {

		private var _ratio : Number;
		public static var CHANGE : String = "change";
		public static var MOVE : String = "move";

		public function ScrollBarEvent(type : String, bubbles : Boolean = false, cancelable : Boolean = false) {
			super(type, bubbles, cancelable);
		}
		// Every custom event class MUST override clone()
	    public override function clone ():Event
	    {
	        return new ScrollBarEvent(type,bubbles,cancelable);
	    }
	    ///////////////////////////////////////////////////////////////////
	    // Every custom event class MUST override toString()
	    public override function toString ():String
	    {
	        return formatToString("ScrollBarEvent","type","bubbles","cancelable","eventPhase");
	    }
	    /**
	     * GETTERS AND SETTERS
	     */
		public function get ratio() : Number {
			return _ratio;
		}
		public function set ratio(value : Number) : void {
			_ratio = value;
		}
	}
}
